﻿@model SnippetBox.Web.Areas.Manage.Models.CategoryModel
    <h3 class="formGroupHeader">User</h3>
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Name</h4>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.Category.Name)
            @Html.ValidationMessageFor(model => model.Category.Name)
        </div>
    </div>
    
    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>URL Slug</h4>
            <p>Leave empty for default slug from name.</p>
        </div>
        <div class="formElement">
            @Html.EditorFor(model => model.Category.Slug)
            @Html.ValidationMessageFor(model => model.Category.Slug)
        </div>
    </div>    

    <div class="formRow clearfix">
        <div class="formLabel">
            <h4>Parent Category</h4>
        </div>
        <div class="formElement">
            @Html.DropDownListFor(model => model.ParentCategoryId, Model.CategoryList, "Root")
            @Html.ValidationMessageFor(model => model.ParentCategoryId)
        </div>
    </div>
